package top.lshaci.learning.springboot.web.model;

import lombok.Data;
import top.lshaci.learning.springboot.web.valid.Group1;
import top.lshaci.learning.springboot.web.valid.Group2;

import javax.validation.constraints.NotBlank;

/**
 * ValidGroupDto
 *
 * @author liangxu
 */
@Data
public class ValidGroupDto {

    @NotBlank(groups = Group1.class)
    private String value1;

    @NotBlank(groups = Group2.class)
    private String value2;

    @NotBlank
    private String value3;
}
